<?php
include 'connection.php';
$professionAreaID = $_POST['professionAreaID'];
$listProfession = callSP("getListProfession(" . $professionAreaID . ");");
$listOptionProfession = null;
while ($rowProfession = mysql_fetch_array($listProfession)) {
	$listOptionProfession = $listOptionProfession . "<option value = '" . $rowProfession['ProfessionID'] . "'>" . $rowProfession['ProfessionName'] . "</option>";
}
$result = array('success' => true, 'message' => $listOptionProfession);
echo json_encode($result);
?>
